package com.example.provider.javastudy.exception;

/**
 * All rights Reserved, Designed By www.maihaoche.com
 *
 * @Package com.example.provider.javastudy.exception
 * @author: 红雪（hongxue@maihaoche.com）
 * @date: 2019/6/27 4:38 PM
 * @Copyright: 2017-2020 www.maihaoche.com Inc. All rights reserved.
 * 注意：本内容仅限于卖好车内部传阅，禁止外泄以及用于其他的商业项目
 */
public class ExceptionTest {

    public static int  count(){
        int i = 0;
        try {
            return i +=1;
        } catch (Exception e) {
            i =3;
            return i +=1;
        }finally {
            return i +=1;
        }
    }

    public static void main(String[] args) {
        System.out.println(count());
    }
}
